package com.dance.sharevalidator.validation;

import com.dance.sharevalidator.validation.validator.MultipleOfThreeForCollection;
import com.dance.sharevalidator.validation.validator.MultipleOfThreeForInteger;
import com.dance.sharevalidator.validation.validator.ValidListValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import javax.validation.groups.Default;
import java.lang.annotation.*;

@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(
        validatedBy = {ValidListValidator.class}
)
public @interface ValidList {
    String message() default "";

    boolean quickFail() default false;

    Class<?>[] groups() default {};

    Class<?>[] groupings() default {Default.class};

    Class<? extends Payload>[] payload() default {};
}
